<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,
    user-scalable=no,maximum-scale=1.0,minimum-scale=1.0">
    <!-- 注意：引用url也有层叠性关系，被覆盖掉样式
    例如在css中如果调换顺序normalize的样式会覆盖住index的样式 -->
    <link rel="stylesheet" href="css/normalize.css">
    <link rel="stylesheet" href="css/index.css">
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <title>Ctrip携程旅行</title>
</head>

<body>
    <!-- 顶部搜索 -->
    <div class="search-index">
        <div class="search">
            搜索：目的地/酒店/景点/航班号
        </div>
        <a href="#" class="user">
            我 的
        </a>
    </div>
    <!-- 焦点图模块 -->
    <div class="focus">
        <img src="upload/focus.jpg" alt="">
    </div>
    <!-- 局部导航栏 -->
    <ul class="local-nav">
        <!-- title指的是当鼠标放上去显示提示文字 -->
        <li><a href="#" title="景点·玩乐">
                <span class="local-nav-icon-icon1"></span>
                <span class="local-name">景点·玩乐</span>
            </a></li>
        <li><a href="#" title="周边游">
                <span class="local-nav-icon-icon2"></span>
                <span class="local-name">周边游</span>
            </a></li>
        <li><a href="#" title="美食林">
                <span class="local-nav-icon-icon3"></span>
                <span class="local-name">美食林</span>
            </a></li>
        <li><a href="#" title="景点·玩乐">
                <span class="local-nav-icon-icon4"></span>
                <span class="local-name">一日游</span>
            </a></li>
        <li><a href="#" title="景点·玩乐">
                <span class="local-nav-icon-icon5"></span>
                <span class="local-name">当地攻略</span>
            </a></li>
    </ul>
    <!-- 主导航栏 -->
    <nav>
        <div class="nav-common">
            <div class="nav-items">
                <a href="#">酒店</a>
            </div>
            <div class="nav-items">
                <a href="#">海外酒店</a>
                <a href="#">特价酒店</a>
            </div>
            <div class="nav-items">
                <a href="#">团购</a>
                <a href="#">名宿-客栈</a>
            </div>
        </div>
        <div class="nav-common">
            <div class="nav-items">
                <a href="#">酒店</a>
            </div>
            <div class="nav-items">
                <a href="#">海外酒店</a>
                <a href="#">特价酒店</a>
            </div>
            <div class="nav-items">
                <a href="#">团购</a>
                <a href="#">名宿-客栈</a>
            </div>
        </div>
        <div class="nav-common">
            <div class="nav-items">
                <a href="#">酒店</a>
            </div>
            <div class="nav-items">
                <a href="#">海外酒店</a>
                <a href="#">特价酒店</a>
            </div>
            <div class="nav-items">
                <a href="#">团购</a>
                <a href="#">名宿-客栈</a>
            </div>
        </div>
    </nav>

    <ul class="subnav-entry">
        <li><a href="#">
                <span class="subnav-entry-icon-icon1">
                </span>
                <span>
                    WIFI电话费
                </span></a>
        </li>
        <li><a href="#">
                <span class="subnav-entry-icon-icon2">
                </span>
                <span>
                    WIFI电话费
                </span></a>
        </li>
        <li><a href="#">
                <span class="subnav-entry-icon-icon3">
                </span>
                <span>
                    WIFI电话费
                </span></a>
        </li>
        <li><a href="#">
                <span class="subnav-entry-icon-icon4">
                </span>
                <span>
                    WIFI电话费
                </span></a>
        </li>
        <li><a href="#">
                <span class="subnav-entry-icon-icon5">
                </span>
                <span>
                    WIFI电话费
                </span></a>
        </li>
        <li><a href="#">
                <span class="subnav-entry-icon-icon6">
                </span>
                <span>
                    WIFI电话费
                </span></a>
        </li>
        <li><a href="#">
                <span class="subnav-entry-icon-icon7">
                </span>
                <span>
                    WIFI电话费
                </span></a>
        </li>
        <li><a href="#">
                <span class="subnav-entry-icon-icon8">
                </span>
                <span>
                    WIFI电话费
                </span></a>
        </li>
        <li><a href="#">
                <span class="subnav-entry-icon-icon9">
                </span>
                <span>
                    WIFI电话费
                </span></a>
        </li>
        <li><a href="#">
                <span class="subnav-entry-icon-icon10">
                </span>
                <span>
                    WIFI电话费
                </span></a>
        </li>
    </ul>
    <div class="sales-box">
        <div class="sales-hd">
            <h2>热门活动</h2>
            <a href="#">获取更多福利</a>
        </div>
        <div class="sales-bd">
            <div class="row"><a href="#">
                    <img src="upload/pic1.jpg" alt="">
                </a>
                <a href="#">
                    <img src="upload/pic2.jpg" alt="">
                </a>
            </div>
            <div class="row"><a href="#">
                    <img src="upload/pic3.jpg" alt="">
                </a>
                <a href="#">
                    <img src="upload/pic4.jpg" alt="">
                </a>
            </div>
            <div class="row"><a href="#">
                    <img src="upload/pic5.jpg" alt="">
                </a>
                <a href="#">
                    <img src="upload/pic6.jpg" alt="">
                </a>
            </div>
        </div>
    </div>
    <!-- 尾部模块 -->
    <ul class="footer-btn">
        <li><a href="#">
            <span class="footer-btn-icon-icon1"></span>
            <span>电话预订</span>
        </a></li>
        <li><a href="#">
            <span class="footer-btn-icon-icon2"></span>
            <span>下载客户端</span>
        </a></li>
        <li><a href="#">
            <span class="footer-btn-icon-icon3"></span>
            <span>我的</span>
        </a></li>
    </ul>
    <script>
        var local =
            document.querySelectorAll('.local-name');
        var title = $('a[title]');
        // console.log(title);
        for (var i = 0; i < local.length - 1; i++) {
            title[i] = local[i].innerHTML;
            console.log(title[i]);
        }
    </script>
</body>

</html>